package com.hrt.datasender.datadao.model;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

/**
 * 
 * <pre>
 * 注释
 * </pre>
 * 
 * @author FAN
 * @date 2018年9月12日下午5:23:02
 */
public class BcAccessParamModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    public static String tableName = "BC_ACCESS_PARAM";

    public static IField id = new Field(BcAccessParamModel.class, "ID", FieldType.String, true, true, false);

    public static IField paramCodeBus = new Field(BcAccessParamModel.class, "PARAM_CODE_BUS", FieldType.String, false,
            true, false);

    public static IField accessParam = new Field(BcAccessParamModel.class, "ACCESS_PARAM", FieldType.String, false,
            true, false);

    public static IField deviceParam = new Field(BcAccessParamModel.class, "DEVICE_PARAM", FieldType.String, false,
            true, false);

    public void setId(String value) {
        setFieldValue(BcAccessParamModel.id.getFieldName(), value);
    }

    public String getId() {
        Object value = getFieldValue(BcAccessParamModel.id.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamCodeBus(String value) {
        setFieldValue(BcAccessParamModel.paramCodeBus.getFieldName(), value);
    }

    public String getParamCodeBus() {
        Object value = getFieldValue(BcAccessParamModel.paramCodeBus.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setAccessParam(String value) {
        setFieldValue(BcAccessParamModel.accessParam.getFieldName(), value);
    }

    public String getAccessParam() {
        Object value = getFieldValue(BcAccessParamModel.accessParam.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setDeviceParam(String value) {
        setFieldValue(BcAccessParamModel.deviceParam.getFieldName(), value);
    }

    public String getDeviceParam() {
        Object value = getFieldValue(BcAccessParamModel.deviceParam.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}